package com.sealer.pattern.behavioral.command.command.impl;

import com.sealer.pattern.behavioral.command.command.Command;
import com.sealer.pattern.behavioral.command.receiver.Light;

/**
 * Created by sealer on 17/04/07.
 */
public class FlipDownCommand implements Command {
    private Light theLight;

    public FlipDownCommand(Light theLight) {
        this.theLight = theLight;
    }

    @Override
    public void execute() {
        theLight.turnOff();
    }
}
